<style>
.js_dialog{
	display: none;
} 
.weui-mask {
    position: fixed;
    z-index: 999999;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}
.weui-dialog {
    position: fixed;
    z-index: 99999999;
    width: 80%;
    max-width: 300px;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background-color: #FFFFFF;
    text-align: center;
    border-radius: 3px;
    overflow: hidden;
}
.weui-dialog__bd:first-child {
    padding: 2.7em 10px 1.7em;
    color: #353535;
}
.weui-dialog__bd {
    padding: 0 1.6em 0.8em;
    min-height: 40px;
    font-size: 15px;
    line-height: 1.3;
    word-wrap: break-word;
    word-break: break-all;
    color: #999999;
}
.weui-dialog__ft {
    position: relative;
    line-height: 48px;
    font-size: 18px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
}
.weui-dialog__btn_primary {
    color: #0BB20C;
}
.weui-dialog__btn_default {
    color: #353535 !important;
}
.weui-dialog__btn {
    display: block;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    color: #3CC51F;
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    position: relative;
}
.weui-dialog__ft:after {
    content: " ";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 1px;
    border-top: 1px solid #D5D5D6;
    color: #D5D5D6;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transform: scaleY(0.5);
    transform: scaleY(0.5);
}
.weui-dialog__btn:after {
    content: " ";
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    bottom: 0;
    border-left: 1px solid #D5D5D6;
    color: #D5D5D6;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transform: scaleX(0.5);
    transform: scaleX(0.5);
}
</style>
<div class="js_dialog">
    <div class="weui-mask"></div>
    <div class="weui-dialog">
        <div class="weui-dialog__bd"></div>
        <div class="weui-dialog__ft">
            <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary"></a>
            <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_default">取消</a>
        </div>
    </div>
</div>
<script>
function ALERT(msg){
	var btn = arguments[1] || '知道了';
	var btnfunc = arguments[2] || function(){$('.js_dialog').hide()};
	if(arguments[3]){
		$('.js_dialog .weui-dialog__btn_default').text(arguments[3]).show();
		var cancelbtn = arguments[4] || function(){$('.js_dialog').hide()};
		$('.js_dialog .weui-dialog__btn_default').click(cancelbtn);
	}else $('.js_dialog .weui-dialog__btn_default').hide()
	
	$('.js_dialog .weui-dialog__bd').html(msg);
	$('.js_dialog .weui-dialog__btn_primary').text(btn);
	$('.js_dialog .weui-dialog__btn_primary').unbind('click').click(function(){
		btnfunc();
		$('.js_dialog').hide();
	});
	$('.js_dialog').show();
}
</script>